<%= assembly_page_header(@assembly, 'transition') %>

<%= breadcrumb [{:label => @assembly.ciName, :kind => 'transition', :link => assembly_transition_path(@assembly)},
                {:icon => breadcrumb_environment_icon,
                 :label => breadcrumb_environment_label,
                 :kind => 'Environment',
                 :link => assembly_transition_environment_path(@assembly, @environment)},
                {:icon => platform_image_url(@platform),
                 :label => breadcrumb_platform_label,
                 :kind => 'Platform',
                 :link => assembly_transition_environment_platform_path(@assembly, @environment, @platform)}] %>

<%= page_title :page_icon     => ci_image_url(@component),
               :page_kind     => "#{@component.ciClassName.split('.').last.capitalize} Component",
               :page_label    => @component.ciName,
               :page_sublabel => "created by #{@component.createdBy}",
               :doc_link      => ci_doc_link(@component, icon('book'), :anchor => 'transition', :class => 'doc-link') %>


<%= page_info "managed via #{@managed_via.map {|r| link_to(highlight(r.toCi.ciName), edit_assembly_transition_environment_platform_component_path(@assembly, @environment, @platform, r.toCi))}.join(', ')}" if @managed_via.present? %>

<%= items = [{:label => 'configuration', :template => 'configuration', :selected => true}]
    items << {:label => 'attachments', :template => 'transition/attachments/attachment_list'} if @attachments.present?
    items << {:label => 'monitors', :url => assembly_transition_environment_platform_component_monitors_path(@assembly, @environment, @platform, @component)}
    items << {:label => 'logging', :url => assembly_transition_environment_platform_component_logs_path(@assembly, @environment, @platform, @component)} if @environment.ciAttributes.logging == 'true'
    render 'base/shared/page_nav_pages', :items => items %>
